package com.yoyo.yyadsdk.bean.dao;

import com.yoyo.yyadsdk.config.PullFeature;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class LocalAdvEntity {

    @Id
    private Long _id;
    //广告id
    @Unique
    private int advId;
    /**
     * 拉活类型 {@link com.yoyo.yyadsdk.config.PullFeature.AdvTypeFlags}
     */
    private int type;
    // 展示时间
    private long lastShowTime;
    //周期内的展示次数
    private int frequencyCount;
    //周期标识
    private long frequencyId;
    @Generated(hash = 1585257714)
    public LocalAdvEntity(Long _id, int advId, int type, long lastShowTime,
            int frequencyCount, long frequencyId) {
        this._id = _id;
        this.advId = advId;
        this.type = type;
        this.lastShowTime = lastShowTime;
        this.frequencyCount = frequencyCount;
        this.frequencyId = frequencyId;
    }
    @Generated(hash = 1984399190)
    public LocalAdvEntity() {
    }
    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public int getAdvId() {
        return this.advId;
    }
    public void setAdvId(int advId) {
        this.advId = advId;
    }
    public int getType() {
        return this.type;
    }
    public void setType(@PullFeature.AdvTypeFlags int type) {
        this.type = type;
    }
    public long getLastShowTime() {
        return this.lastShowTime;
    }
    public void setLastShowTime(long lastShowTime) {
        this.lastShowTime = lastShowTime;
    }
    public int getFrequencyCount() {
        return this.frequencyCount;
    }
    public void setFrequencyCount(int frequencyCount) {
        this.frequencyCount = frequencyCount;
    }
    public long getFrequencyId() {
        return this.frequencyId;
    }
    public void setFrequencyId(long frequencyId) {
        this.frequencyId = frequencyId;
    }

}
